package cn.tedu.csmall.product.controller;

import cn.tedu.csmall.product.ex.ServiceException;
import cn.tedu.csmall.product.web.JsonResult;
import cn.tedu.csmall.product.web.ServiceCode;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/brand")
@Api(tags = "3. 品牌管理模块")
public class BrandController {

    // http://localhost:9080/brand/delete
    @PostMapping("/delete")
    public JsonResult delete(Long id, Long userId) {
        return JsonResult.fail(new ServiceException(ServiceCode.ERR_CONFICT, "删除品牌失败"));
    }

}
